race against time

Translations
гонка со временем
He had to race against time to finish the project before the deadline.
Ему пришлось устроить гонку со временем, чтобы закончить проект до срока.
Definitions
A situation in which someone must hurry to complete a task before a deadline or before it is too late.